<?php include('header.php'); ?>
<?php
    //session_start();
    //require_once './inc_onlinestoredb.php'; page 586
    //require_once './class/class_onlinestore.php'; 
	//$storeID = "MEN";
	$storeInfo = array();
        if(class_exists("OnlineStore")){
            if (isset($_SESSION['currentStore']))
                $store = unserialize ($_SESSION['currentStore']);
            else {
                $store = new OnlineStore();
            }  
			//$store->setStoreID($storeID);	
			$storeInfo = $store->getStoreInformation();
			$store->processUserInput();			
			//checks for ItemToAdd
			//if (isset($_GET['ItemToAdd'])) {
			//	$store->addItem();
			//}

        }
        else{
            $errormsg[] = "The OnlineStore class is not available";
            $store = NULL;
        }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
	</head>
	<body>
	<div class="container">
		<!--<h1><?php echo htmlentities($storeInfo['name']); ?></h1>
			<p>Inventory</p> -->
			
		<?php
		/*echo"<p><a href='men.php?PHPSESSID=" .
			session_id()."'>Men's T-Shirt</a></p>\n";
			
	echo"<p><a href='women.php?PHPSESSID=" .
			session_id()."'>Ladies T-Shirt</a></p>\n";*/
			
	echo"<h2>Your Shopping Cart</h2>\n";
	
		$store->processUserInput();
			$store->showCart();
			
				$_SESSION['currentStore'] = serialize($store);
			//$store->showCart();
			//$_SESSION['currentStore'] = serialize($store);
		?>
	</div>
	</body>
</html>



<p></p>
<?php include('footer.php'); ?>